// Copyright (c) 2012 Romain Vallet <romain.vallet@gmail.com>
// Licensed under the MIT license, read license.txt

chrome.extension.sendRequest({action: 'getOptions'}, function(options){
	window.addEventListener('keydown', function(event) {
		if (event.which == options.openImageInTabKey) {
			window.close();
		}
	});	
});